\hypertarget{classpkPlayback_1_1pkPlayback}{\section{pk\-Playback.\-pk\-Playback Class Reference}
\label{classpkPlayback_1_1pkPlayback}\index{pk\-Playback.\-pk\-Playback@{pk\-Playback.\-pk\-Playback}}
}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classpkPlayback_1_1pkPlayback_a1711e788f9f1136ce641c5017f60cab8}{def {\bfseries \-\_\-\-\_\-init\-\_\-\-\_\-}}\label{classpkPlayback_1_1pkPlayback_a1711e788f9f1136ce641c5017f60cab8}

\item 
def \hyperlink{classpkPlayback_1_1pkPlayback_a155668c6a4af9cce5ac043a9b255bb82}{play}
\item 
def \hyperlink{classpkPlayback_1_1pkPlayback_a54afb7f6bc627555819b9d159550ee57}{pause}
\item 
def \hyperlink{classpkPlayback_1_1pkPlayback_a416dcff4d9acfd132deafa4d67e8c257}{stop}
\item 
def \hyperlink{classpkPlayback_1_1pkPlayback_a9058a9a4a5740c93665345154b357a27}{next}
\item 
def \hyperlink{classpkPlayback_1_1pkPlayback_a3f7f84cc74ab2cef4dc6003c16027603}{previous}
\item 
def \hyperlink{classpkPlayback_1_1pkPlayback_a163279f9a33c2b1f0d61251169441835}{rewind}
\item 
def \hyperlink{classpkPlayback_1_1pkPlayback_a7763910e46af56f752eeff3926b728b3}{forward}
\item 
def \hyperlink{classpkPlayback_1_1pkPlayback_a57fd0739d1d7f3c3f63dac222e23013b}{seek}
\item 
def \hyperlink{classpkPlayback_1_1pkPlayback_a195653a69462a57d596b3b77deb38b9c}{go\-\_\-to\-\_\-song}
\item 
def \hyperlink{classpkPlayback_1_1pkPlayback_ae71bd9fbc5b307093d68760a5e5b33b8}{clear}
\item 
def \hyperlink{classpkPlayback_1_1pkPlayback_a3043a4fa474d8c322e7e691d19535235}{set\-\_\-queue}
\item 
def \hyperlink{classpkPlayback_1_1pkPlayback_a9ea242d99b26bd0501014b95a40fb0a1}{get\-\_\-current\-\_\-queue}
\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classpkPlayback_1_1pkPlayback_a7c86a5a60ae79467435237175be7bb99}{{\bfseries play\-\_\-stack\-\_\-cursor}}\label{classpkPlayback_1_1pkPlayback_a7c86a5a60ae79467435237175be7bb99}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
\begin{DoxyVerb}General playback utility for pykodio.
Uses phonon for playback.
\end{DoxyVerb}
 

\subsection{Member Function Documentation}
\hypertarget{classpkPlayback_1_1pkPlayback_ae71bd9fbc5b307093d68760a5e5b33b8}{\index{pk\-Playback\-::pk\-Playback@{pk\-Playback\-::pk\-Playback}!clear@{clear}}
\index{clear@{clear}!pkPlayback::pkPlayback@{pk\-Playback\-::pk\-Playback}}
\subsubsection[{clear}]{\setlength{\rightskip}{0pt plus 5cm}def pk\-Playback.\-pk\-Playback.\-clear (
\begin{DoxyParamCaption}
\item[{}]{self}
\end{DoxyParamCaption}
)}}\label{classpkPlayback_1_1pkPlayback_ae71bd9fbc5b307093d68760a5e5b33b8}
\begin{DoxyVerb}Empty Phonon's MediaObject queue and playing song\end{DoxyVerb}
 \hypertarget{classpkPlayback_1_1pkPlayback_a7763910e46af56f752eeff3926b728b3}{\index{pk\-Playback\-::pk\-Playback@{pk\-Playback\-::pk\-Playback}!forward@{forward}}
\index{forward@{forward}!pkPlayback::pkPlayback@{pk\-Playback\-::pk\-Playback}}
\subsubsection[{forward}]{\setlength{\rightskip}{0pt plus 5cm}def pk\-Playback.\-pk\-Playback.\-forward (
\begin{DoxyParamCaption}
\item[{}]{self}
\end{DoxyParamCaption}
)}}\label{classpkPlayback_1_1pkPlayback_a7763910e46af56f752eeff3926b728b3}
\begin{DoxyVerb}Seek gradually the playing song forward
--This method should be place in a loop
\end{DoxyVerb}
 \hypertarget{classpkPlayback_1_1pkPlayback_a9ea242d99b26bd0501014b95a40fb0a1}{\index{pk\-Playback\-::pk\-Playback@{pk\-Playback\-::pk\-Playback}!get\-\_\-current\-\_\-queue@{get\-\_\-current\-\_\-queue}}
\index{get\-\_\-current\-\_\-queue@{get\-\_\-current\-\_\-queue}!pkPlayback::pkPlayback@{pk\-Playback\-::pk\-Playback}}
\subsubsection[{get\-\_\-current\-\_\-queue}]{\setlength{\rightskip}{0pt plus 5cm}def pk\-Playback.\-pk\-Playback.\-get\-\_\-current\-\_\-queue (
\begin{DoxyParamCaption}
\item[{}]{self}
\end{DoxyParamCaption}
)}}\label{classpkPlayback_1_1pkPlayback_a9ea242d99b26bd0501014b95a40fb0a1}
\begin{DoxyVerb}Return the current queue for testing purpose \end{DoxyVerb}
 \hypertarget{classpkPlayback_1_1pkPlayback_a195653a69462a57d596b3b77deb38b9c}{\index{pk\-Playback\-::pk\-Playback@{pk\-Playback\-::pk\-Playback}!go\-\_\-to\-\_\-song@{go\-\_\-to\-\_\-song}}
\index{go\-\_\-to\-\_\-song@{go\-\_\-to\-\_\-song}!pkPlayback::pkPlayback@{pk\-Playback\-::pk\-Playback}}
\subsubsection[{go\-\_\-to\-\_\-song}]{\setlength{\rightskip}{0pt plus 5cm}def pk\-Playback.\-pk\-Playback.\-go\-\_\-to\-\_\-song (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{song\-Position}
\end{DoxyParamCaption}
)}}\label{classpkPlayback_1_1pkPlayback_a195653a69462a57d596b3b77deb38b9c}
\begin{DoxyVerb}Set new playlist starting by the song at songPosition

song_position: songPositionInStack(song_group, song_index_in_group)
\end{DoxyVerb}
 \hypertarget{classpkPlayback_1_1pkPlayback_a9058a9a4a5740c93665345154b357a27}{\index{pk\-Playback\-::pk\-Playback@{pk\-Playback\-::pk\-Playback}!next@{next}}
\index{next@{next}!pkPlayback::pkPlayback@{pk\-Playback\-::pk\-Playback}}
\subsubsection[{next}]{\setlength{\rightskip}{0pt plus 5cm}def pk\-Playback.\-pk\-Playback.\-next (
\begin{DoxyParamCaption}
\item[{}]{self}
\end{DoxyParamCaption}
)}}\label{classpkPlayback_1_1pkPlayback_a9058a9a4a5740c93665345154b357a27}
\begin{DoxyVerb}Skip to next song in the Phonon MediaObject's queue \end{DoxyVerb}
 \hypertarget{classpkPlayback_1_1pkPlayback_a54afb7f6bc627555819b9d159550ee57}{\index{pk\-Playback\-::pk\-Playback@{pk\-Playback\-::pk\-Playback}!pause@{pause}}
\index{pause@{pause}!pkPlayback::pkPlayback@{pk\-Playback\-::pk\-Playback}}
\subsubsection[{pause}]{\setlength{\rightskip}{0pt plus 5cm}def pk\-Playback.\-pk\-Playback.\-pause (
\begin{DoxyParamCaption}
\item[{}]{self}
\end{DoxyParamCaption}
)}}\label{classpkPlayback_1_1pkPlayback_a54afb7f6bc627555819b9d159550ee57}
\begin{DoxyVerb}Pause the playback \end{DoxyVerb}
 \hypertarget{classpkPlayback_1_1pkPlayback_a155668c6a4af9cce5ac043a9b255bb82}{\index{pk\-Playback\-::pk\-Playback@{pk\-Playback\-::pk\-Playback}!play@{play}}
\index{play@{play}!pkPlayback::pkPlayback@{pk\-Playback\-::pk\-Playback}}
\subsubsection[{play}]{\setlength{\rightskip}{0pt plus 5cm}def pk\-Playback.\-pk\-Playback.\-play (
\begin{DoxyParamCaption}
\item[{}]{self}
\end{DoxyParamCaption}
)}}\label{classpkPlayback_1_1pkPlayback_a155668c6a4af9cce5ac043a9b255bb82}
\begin{DoxyVerb}Start the playback \end{DoxyVerb}
 \hypertarget{classpkPlayback_1_1pkPlayback_a3f7f84cc74ab2cef4dc6003c16027603}{\index{pk\-Playback\-::pk\-Playback@{pk\-Playback\-::pk\-Playback}!previous@{previous}}
\index{previous@{previous}!pkPlayback::pkPlayback@{pk\-Playback\-::pk\-Playback}}
\subsubsection[{previous}]{\setlength{\rightskip}{0pt plus 5cm}def pk\-Playback.\-pk\-Playback.\-previous (
\begin{DoxyParamCaption}
\item[{}]{self}
\end{DoxyParamCaption}
)}}\label{classpkPlayback_1_1pkPlayback_a3f7f84cc74ab2cef4dc6003c16027603}
\begin{DoxyVerb}Returns to the begining of the current source, or to the previous
one if the song started less than _PREVIOUS_THRESHOLD ago
\end{DoxyVerb}
 \hypertarget{classpkPlayback_1_1pkPlayback_a163279f9a33c2b1f0d61251169441835}{\index{pk\-Playback\-::pk\-Playback@{pk\-Playback\-::pk\-Playback}!rewind@{rewind}}
\index{rewind@{rewind}!pkPlayback::pkPlayback@{pk\-Playback\-::pk\-Playback}}
\subsubsection[{rewind}]{\setlength{\rightskip}{0pt plus 5cm}def pk\-Playback.\-pk\-Playback.\-rewind (
\begin{DoxyParamCaption}
\item[{}]{self}
\end{DoxyParamCaption}
)}}\label{classpkPlayback_1_1pkPlayback_a163279f9a33c2b1f0d61251169441835}
\begin{DoxyVerb}Seek gradually the playing song backward
--This method should be place in a loop
\end{DoxyVerb}
 \hypertarget{classpkPlayback_1_1pkPlayback_a57fd0739d1d7f3c3f63dac222e23013b}{\index{pk\-Playback\-::pk\-Playback@{pk\-Playback\-::pk\-Playback}!seek@{seek}}
\index{seek@{seek}!pkPlayback::pkPlayback@{pk\-Playback\-::pk\-Playback}}
\subsubsection[{seek}]{\setlength{\rightskip}{0pt plus 5cm}def pk\-Playback.\-pk\-Playback.\-seek (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{time}
\end{DoxyParamCaption}
)}}\label{classpkPlayback_1_1pkPlayback_a57fd0739d1d7f3c3f63dac222e23013b}
\begin{DoxyVerb}Seek the playing song at a specified time
--For better accuracy, use (insertName) slider
\end{DoxyVerb}
 \hypertarget{classpkPlayback_1_1pkPlayback_a3043a4fa474d8c322e7e691d19535235}{\index{pk\-Playback\-::pk\-Playback@{pk\-Playback\-::pk\-Playback}!set\-\_\-queue@{set\-\_\-queue}}
\index{set\-\_\-queue@{set\-\_\-queue}!pkPlayback::pkPlayback@{pk\-Playback\-::pk\-Playback}}
\subsubsection[{set\-\_\-queue}]{\setlength{\rightskip}{0pt plus 5cm}def pk\-Playback.\-pk\-Playback.\-set\-\_\-queue (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{paths\-\_\-of\-\_\-songs\-\_\-to\-\_\-enqueue = {\ttfamily \mbox{[}\mbox{]}}}
\end{DoxyParamCaption}
)}}\label{classpkPlayback_1_1pkPlayback_a3043a4fa474d8c322e7e691d19535235}
\begin{DoxyVerb}Set Phonon's MediaObject queue to songs_to_enqueue list \end{DoxyVerb}
 \hypertarget{classpkPlayback_1_1pkPlayback_a416dcff4d9acfd132deafa4d67e8c257}{\index{pk\-Playback\-::pk\-Playback@{pk\-Playback\-::pk\-Playback}!stop@{stop}}
\index{stop@{stop}!pkPlayback::pkPlayback@{pk\-Playback\-::pk\-Playback}}
\subsubsection[{stop}]{\setlength{\rightskip}{0pt plus 5cm}def pk\-Playback.\-pk\-Playback.\-stop (
\begin{DoxyParamCaption}
\item[{}]{self}
\end{DoxyParamCaption}
)}}\label{classpkPlayback_1_1pkPlayback_a416dcff4d9acfd132deafa4d67e8c257}
\begin{DoxyVerb}Stop the playback, clear the playlist, clear current source \end{DoxyVerb}
 

The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
pk\-Playback.\-py\end{DoxyCompactItemize}
